package com.hnqcgczy.sgzTest.dao;

import com.hnqcgczy.sgzTest.pojo.TUser;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {

     /**
      * 查询所有用户
      *
      * @return
      * @throws SQLException
      */
     List<TUser> getAll()throws SQLException;

     /**
      * 登陆方法
      * @param username
      * @param password
      * @return
      * @throws SQLException
      */
     boolean login(String username,String password)throws SQLException;
}
